home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 November: Tool Chest / Dev.CD Nov 98 TC.toast / Sample Code / QuickTime / Show Movie / Sources / WindStuff.h < prev   
Encoding:
C/C++ Source or Header  |  1995-11-20  |  1.2 KB  |  50 lines  |  [TEXT/MMCC]

  1. /*
  2.   File:            WindStuff.h
  3.   Contains:        Window handling routine headers.
  4.   Written by:    Jason Hodges-Harris & Don Swatman
  5.   Copyright:    © 1995 by Apple Computer, Inc., all rights reserved.
  6. */
  7.  
  8.  
  9.  
  10. #ifndef __WINDSTUFF__
  11. #define __WINDSTUFF__
  12.  
  13. #include <Types.h>
  14. #include <Windows.h>
  15.  
  16.  
  17. //----------------------------------------------
  18. // Globals
  19. //----------------------------------------------
  20.  
  21. #define kMaxWindows 5  // Maxinum windows we can display
  22.  
  23. extern WindowPtr gTheWinds[kMaxWindows];  // List of all the windows
  24. extern Boolean     gDone;                   // Set to true to quit program
  25.     
  26. //----------------------------------------------
  27. // Prototypes
  28. //----------------------------------------------
  29.  
  30. Boolean IsOurWindow( WindowPtr pWindow);
  31. short GetWindowNum ( WindowPtr pWindow );
  32. Boolean IsFreeWind( short *newWindNum, short howManyNeeded);
  33.  
  34.  
  35. void CloseOurWindow ( short windNum );
  36. void CloseAllWindows(void);
  37.  
  38. #define kWindAtFront (WindowPtr)-1L  // Create a window at the front
  39. void CreateWindow ( short windNum, Str255 theTitle, WindowPtr pWindowBehind );
  40.  
  41. void DragSelWind( WindowPtr window,
  42.                                     Point     mouseLoc);
  43.  
  44. void DoGoAwayWind ( WindowPtr pWindow,
  45.                                         Point     mouseLoc);
  46. void    DoWindUpdate ( WindowPtr pWindow );
  47.  
  48. void AboutBox(void);
  49.  
  50. #endif